package gui.properties;

import gui.EditorWindowSettings;

import java.awt.Component;
import java.awt.Container;
import java.awt.Dimension;
import java.awt.LayoutManager;
import java.util.*;

import model.objects.EdiStation;


public class ListLayout implements LayoutManager{

	//private List<FlowPanel> panels = new LinkedList<FlowPanel>(); 
	
	public ListLayout() {
		//		
	}
	
	
	@Override
	public void addLayoutComponent(String arg0, Component arg1) {		
		
	}

	@Override
	public void layoutContainer(Container arg0) {
		int prevHeight =0;
		for(Component c: arg0.getComponents()) {			
			c.setBounds(0,prevHeight, EditorWindowSettings.propertiesWidth,(int)c.getPreferredSize().getHeight());
			prevHeight += (int)c.getPreferredSize().getHeight();			
		}
		
	}

	@Override
	public Dimension minimumLayoutSize(Container arg0) {
		// TODO Auto-generated method stub
		return null;
	}

	@Override
	public Dimension preferredLayoutSize(Container arg0) {
		// TODO Auto-generated method stub
		return null;
	}

	@Override
	public void removeLayoutComponent(Component arg0) {
		// TODO Auto-generated method stub
		
	}
	
}
